LIB=libutility.so
OBJ=api.o application.o lock.o  log.o message.o shareMemory.o timer.o timestamp.o util.o 

all: $(LIB) public_lib_install
clean: public_lib_clean public_clean

	
CURR_DIR := $(shell pwd)
ROOT_DIR:=$(subst /ipc,/ipc ,$(CURR_DIR))
ROOT_DIR:=$(word 1, $(ROOT_DIR))

include $(ROOT_DIR)/make.defines
include $(ROOT_DIR)/make.rules
-include $(OBJ:.o=.d)
CFLAGS += -I$(ROOT_DIR)/include

$(LIB):$(OBJ)
	$(CC) -shared -Wl,-soname,$@ -o $@ $(OBJ)



